<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>轮播图</title>
    <style>
        body {
            position: relative;
        }

        .box-style {
            position: absolute;
            top: 30px;
            width: 80%;
            height: 500px;
            margin: 0 auto;
        }

        .span_left, .span_right {
            line-height: 500px;
            font-size: 60px;
        }

        .span_left:hover, .span_right:hover{
            background: red;
        }

        .span_left{
            margin-left: -150px;
        }

        .span_right{
            margin-right: -150px;
        }
    </style>
    <link rel="stylesheet" href="../pc/dist-3.4.1/css/bootstrap.css">
    <script src="../../../jquery-js/jquery.js"></script>
    <script src="../pc/dist-3.4.1/js/bootstrap.js"></script>
</head>
<body>
<div id="carousel-show" class="carousel slide box-style" data-ride="carousel">
    <!--设置图片轮播计数器-->
    <ol class="carousel-indicators">
        <li style="border: 2px solid #000000" data-target="#carousel-show" data-slide-to="0" class="active"></li>
        <li style="border: 2px solid #000000" data-target="#carousel-show" data-slide-to="1"></li>
        <li style="border: 2px solid #000000" data-target="#carousel-show" data-slide-to="2"></li>
        <li style="border: 2px solid #000000" data-target="#carousel-show" data-slide-to="3"></li>
    </ol>

    <!--设置轮播图片-->
    <div class="carousel-inner">
        <div class="item active">
            <a href="#">
                <img style="width:100%;height: 500px;margin: 0 auto;" src="./img/slider-6.jpg" alt="">
            </a>
        </div>
        <div class="item">
            <a href="#">
                <img style="width:100%;height: 500px;margin: 0 auto;" src="./img/slider-8.jpg" alt="">
            </a>
        </div>
        <div class="item">
            <a href="#">
                <img style="width:100%;height: 500px;margin: 0 auto;" src="./img/slider-10.jpeg" alt="">
            </a>
        </div>
        <div class="item">
            <a href="#">
                <img style="width:100%;height: 500px;margin: 0 auto;" src="./img/slider-11.jpeg" alt="">
            </a>
        </div>
    </div>

    <!--设置轮播图片控制器-->
    <a href="#carousel-show" class="left carousel-control" role="button" data-slide="prev" style="height: 500px">
        <span class="span_left">&lt;</span>
    </a>
    <a href="#carousel-show" class="right carousel-control" role="button" data-slide="next" style="height: 500px">
        <span class="span_right">&gt;</span>
    </a>
</div>
</body>
</html>